namespace FlowerShop.Core.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Torder")]
    public partial class Torder
    {
        [Key]
        public int O_id { get; set; }

        [Required]
        [StringLength(50)]
        public string O_name { get; set; }

        public DateTime O_date { get; set; }

        [StringLength(50)]
        public string O_add { get; set; }

        [StringLength(50)]
        public string City { get; set; }

        [StringLength(50)]
        public string State { get; set; }

        [StringLength(50)]
        public string youbian { get; set; }

        [StringLength(50)]
        public string phone { get; set; }

        [StringLength(50)]
        public string O_zhuangtai { get; set; }

        public int? W_id { get; set; }

        public decimal? O_profit { get; set; }

        [StringLength(100)]
        public string WLinfo { get; set; }

        [StringLength(50)]
        public string O_qianshou { get; set; }

        [StringLength(500)]
        public string O_pinglun { get; set; }

        [StringLength(50)]
        public string O_dafen { get; set; }

        [StringLength(50)]
        public string O_huaduoming { get; set; }
        public virtual Twoker Twoker { get; set; }
    }
}
